<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html>
<head>
    <jsp:include page="/WEB-INF/jsp/include/head.jsp"/>
</head>
<body>

<!-- 面包屑导航 -->
<ul class="breadcrumb">
    <li><strong>当前位置： </strong>业务预警</li>
    <li class="active">核查次数不足</li>
</ul>





<div  class="form-horizontal row" >
    <form id="form_search">
        <div class="form-group col-sm-5">
            <label class="col-sm-4  control-label  ">核查次数：</label>
            <div class="col-sm-8">
                <select class="form-control " id="years" name="years">
                    <option value="1" <c:if test="${years==1}">selected</c:if>>一年小于2次</option>
                    <option value="2" <c:if test="${years==2}">selected</c:if>>两年小于4次</option>
                    <option value="3" <c:if test="${years==3}">selected</c:if>>三年小于6次</option>
                </select>
            </div>
        </div>

        <div class="form-group col-sm-5">
            <label class="col-sm-4  control-label  ">事　　项：</label>
            <div class="col-sm-8">
                <select class="form-control" name="itemId" id="itemId">
                    <option value="">&nbsp;</option>
                </select>
            </div>
        </div>
    </form>
</div>


<table id="table_data"></table>


<div class="modal fade" id="modal_ajax">
    <div class="modal-dialog  modal-mid ">
        <div class="modal-content ">
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->


<jsp:include page="/WEB-INF/jsp/include/footer.jsp"/>

<script>
    var $table_data = $('#table_data');
    $table_data.bootstrapTable({
        url: 'expertInfo/checkNotEnough/select',
        striped: true,
        cache: false,
        sidePagination: 'server',
        searchOnEnterKey: false,
        pageSize: 10,
        pageList: [ 10, 20,30,50,100,500,1000],
        pageNumber: 1,
        pagination: true,
        queryParams: function (params) {
            $.extend(params, $("#form_search").serializeObject());
            return params
        },
        columns: [
            {
                title: '序号',
                formatter: function (value, row, index) {
                    return [
                        index + 1
                    ].join('');
                }
            },
            {
                title: '姓名',
                field: 'name'

            },
            {
                title: '身份证号',
                field: 'idCard'

            },
            {
                title: '联系方式',
                field: 'phone'

            },

            {
                title: '证书名称',
                field: 'certificateName'
            }, {
                title: '证书编号',
                field: 'certificateNum'
            }
            , {
                title: '发证时间',
                field: 'certificateStartTime',
                formatter: function (value, row, index) {
                    return [
                        $.Helper.dataTimeHelper.int2DateString(value)
                    ].join('');
                }
            }
            , {
                title: '有效期至',
                field: 'certificateEndTime',
                formatter: function (value, row, index) {
                    return [
                        $.Helper.dataTimeHelper.int2DateString(value)
                    ].join('');
                }
            }
            , {
                title: '评审次数',
                field: 'times'
            }
        ]
    });


    $("#years").change(function () {
        $table_data.bootstrapTable('refresh');
    });
    $("#itemId").change(function () {
        $table_data.bootstrapTable('refresh');
    });


        $.sysPlugin.initSelect2($("#itemId"),{
            url: 'dictionary/publicOpen/itemTypeOnlyLive'
        });
        $.sysPlugin.initSimpleSelect2();
</script>


</body>
</html>